<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>XPEL Electronic Warranty and Dealer Locator</title>
    <link rel="stylesheet" href="/dist/font-awesome.css">
    <link rel="stylesheet" href="/dist/bootstrap.css">
    <link rel="stylesheet" href="/dist/front/app.css?v={{ time() }}">
    <link rel="stylesheet" href="/dist/toastr.min.css">
    <link rel="stylesheet" href="/dist/layui/css/layui.css">
    <style>
        body{
            /*background-color: #ebeef5;*/
        }
        header{
            padding: 15px 0;
            box-shadow: 0 1px 3px #ddd;
            border-radius: 0;
            margin-bottom: 1rem;
            position: relative;
            background: #fff;
        }
        header .container img.logo-default{
            max-width: 90%;
            height: 30px;
            width: auto;
        }
        .body-wrapper .container{
            /*border: 1px solid #ddd;*/
            border-radius:5px;
            padding-top: 10px;
            padding-bottom: 10px;
        }
        .body-wrapper .container ul{
            border: 1px solid #ddd;
            /*border-radius:5px;
            padding-top: 10px;
            padding-bottom: 10px;*/
            width: 250px;
        }
        .body-wrapper .container ul li{

            position: relative;
            margin-bottom: 1px;
        }

        .body-wrapper .container ul li a{
            font-size: 14px;
            color: #7C858E;
            display: block;
            background: #F4F4F4;
            padding: 12px 10px 11px 8px;
        }
        .body-wrapper .container ul li.active a{
            background: #e44f00;
            background: #3aaaf8;
            text-decoration: none;
            color: #fff;
        }
        .portlet-title .caption{
            background: #e44f00;
            background: #3aaaf8;
            text-decoration: none;
            color: #fff;
            padding: 12px 10px 11px 15px;
        }
        .tab-content{
            border: 1px solid #ddd;
            min-height: 420px;
        }
        .tab-content .form-actions{
            padding: 20px 10px;
            margin: 0;
            background-color: #f5f5f5;
            border-top: 1px solid #e5e5e5;
        }
        .warrenty_data{
            width: 80%;
            margin: 0 auto;
            padding: 20px 0;
        }
        .warrenty_data .table + .table{
            margin-top: 3rem;
        }
        .table .tth{
            background-color: rgba(0, 0, 0, 0.05);
            width: 150px;
            font-weight: bold;
        }
        .table .ttd{
            width: 350px;
        }
        .table .ttt{
            padding: 0;
        }
        .table .ttt .table{
            margin: 0;
        }
        .table .ttt .table img + p{
            text-align: center;
            margin: 10px 0 0;
        }
        .form-item {
            margin-bottom: 15px;
            clear: both;
            display: flex;
            flex-wrap: nowrap;
            box-sizing: border-box
        }

        .form-item .form-label {
            width: 100px;
            flex: 0 0 100px;
            padding: 9px 15px;
            line-height: 20px;
            text-align: right;
            box-sizing: border-box;
            position: relative
        }

        .form-item .form-label[required]:before {
            content: "*";
            color: red;
            padding-right: 5px
        }

        .form-item .form-input {
            flex: 1;
            overflow: hidden;
        }
        .form-item .form-input .form-control{
            width: auto;
        }

        .ttt .table img + p{
            text-align: center;
            margin: 10px 0 0;
        }
        .tst{
            color: #00b050;
            font-weight: 700;
            text-align: center;
            font-size: 1.25rem;
        }
        @media (max-width: 767.98px) {
            .warrenty_data{
                width: 90%;
            }
            .form-item{
                padding-right: 15px;
            }
            .form-item .form-label{
                flex: 0 0 80px;
                padding: 9px 15px 9px 0;
            }
            .form-item .form-input .form-control{
                width: 100%;
            }
            .table .tth{
                width: 30%;
            }
        }
        .sms-btn{
            width: 95px;
            text-align: center;
        }
    </style>
</head>
<body>

<header>
    <div class="container">
        <div class="row">
            <div class="page-logo col-auto">
                <a href="http://www.xpel.com.cn/" class="logo">
                    <img src="/images/main_logo.png" alt="logo" class="logo-default">
                </a>
            </div>
            <div class="page-actions col"></div>
            <div class="top-menu col-auto">
                <div class="lang-change">
                    <select name="language" class="form-control" onChange="lang_change(this.value)">
                        <option value="1" {{ session('language')==1 ? 'selected' : '' }}>English</option>
                        <option value="2" {{ session('language')==2 ? 'selected' : '' }}> 繁體 </option>
                        <option value="3" {{ session('language')==3 ? 'selected' : '' }}> 简体 </option>
                    </select>
                </div>
            </div>
        </div>
    </div>
</header>
<div class="body-wrapper">

    <div class="container">

        <div class="layui-tab layui-tab-card">
            <ul class="layui-tab-title" style="width: 100%;">
                <a href="/">
                    <li style="width: 12%;">质保查询</li>
                </a>
                <a href="https://vision.xpel.com.cn/vision-warranty/">
                    <li style="width: 29%;">家居膜质保查询</li>
                </a>
                <li class="layui-this" style="width: 29%;">ASP质保查询</li>
                <a href="https://pdi.xpel.com.cn/asp-warranty">
                    <li style="width: 28%;">4S质保查询</li>
                </a>
            </ul>
        </div>
        <!--<div class="text-center my-3">
            <a href="/" class="btn btn-danger mx-3">质保查询</a>
            <a href="/asp-warranty" class="btn mx-3">ASP质保查询</a>
        </div>-->
        <div class="row flex-lg-nowrap">
            {{--<div class="col-auto">
                <ul>
                    <li class="{{ request('t')!='dealers' ? 'active' : '' }}"><a href="/">{{ ts('WARRANTYSEARCH') }}</a></li>
                    --}}{{--<li class="{{ request('t')=='dealers' ? 'active' : '' }}"><a href="/?t=dealers">经销商查询</a></li>--}}{{--
                </ul>
            </div>--}}
            <div class="col">
                @if(request('t')=='dealers')
                @elseif(!empty($model))
                    <div class="tab-content">
                        <div class="portlet-title">
                            <div class="caption">ASP{{ ts('WARRANTYSEARCH') }}</div>
                        </div>
                        <div class="portlet-body">
                            <div class="filter-wrapper">
                                @csrf
                                <input type="text" value="warranty" name="t" hidden>
                                <div class="form-item my-3">
                                    <div class="form-label" required="">{{ ts('INPUT') }}</div>
                                    <div class="form-input">
                                        <input type="text" class="form-control" name="svalue" placeholder="请输入车架号/质保ID查询" value="{{ $model->warranty_id }}" style="width: 280px;max-width: 100%;">
                                        <div id="div4" style="display: none;margin-bottom: 0;padding: 1px 1px 1px 10px;" class="alert alert-danger alert-dismissable"> 请插入值</div>
                                    </div>
                                </div>
                                <div class="form-actions">
                                    <button onclick="searchWarrenty();" class="btn btn-primary">搜索</button>
                                </div>
                            </div>
                            <div class="p-3">
                                <div class="d-none d-md-block">
                                    @include('index.warranty-detail-pc')
                                </div>

                                <div class="d-block d-md-none">
                                    @include('index.warranty-detail-mb')
                                </div>
                            </div>
                        </div>
                    </div>
                @else
                    <div class="tab-content">
                        <div class="portlet-title">
                            <div class="caption">ASP{{ ts('WARRANTYSEARCH') }}</div>
                        </div>
                        <div class="portlet-body">
                            <div class="filter-wrapper">
                                <!--<form class="warranty-form" method="post" action="/">-->
                                @csrf
                                <input type="text" value="warranty" name="t" hidden>
                                <div class="form-item my-3">
                                    <div class="form-label" required="">{{ ts('INPUT') }}</div>
                                    <div class="form-input">
                                        <input type="text" class="form-control" name="svalue" placeholder="请输入车架号/质保ID查询" value="{{ request('t')=='warranty' ? request('svalue') : '' }}" style="width: 280px;max-width: 100%;">
                                        <div id="div4" style="display: none;margin-bottom: 0;padding: 1px 1px 1px 10px;" class="alert alert-danger alert-dismissable"> 请插入值</div>
                                    </div>
                                </div>
                                <div class="form-actions">
                                    <button onclick="searchWarrenty();" class="btn btn-primary">搜索</button>
                                </div>
                                <!--</form>-->
                            </div>
                            @if(request('t')=='warranty')
                                @empty(trim(request()->input('svalue')))
                                @elseif(empty($datas) || !count($datas))
                                    <div id="warrenty_data" class="warrenty_data">
                                        <div class="alert alert-danger mt-3">
                                            <p>{{ ts('WERRORLINE1') }}</p>
                                            <p>{{ ts('WERRORLINE2') }}</p>
                                            <p>{{ ts('WERRORLINE3') }}：<a href="{{ ts('LINK1') }}" class="text-primary" target="_blank">{{ ts('LINK1') }}</a></p>
                                            <p></p>
                                        </div>
                                    </div>
                                @else
                                    <div id="warrenty_data" class="warrenty_data">
                                        <div class="d-none d-md-block">
                                            @foreach($datas as $k => $v)
                                                <table class="table table-bordered">
                                                    <tbody>
                                                    <tr>
                                                        <th colspan="6" style="color: #007bff;">{{ ts('VALIDWARRANTYID') }}</th>
                                                    </tr>
                                                    <tr>
                                                        <td class="tth">{{ ts('WARRANTYID') }}</td>
                                                        <td class="ttd">{{ @$v->warranty_id }}</td>
                                                        <td class="tth">{{ ts('LICENSEPLATE') }}</td>
                                                        <td class="ttd">{{ @$v->license_plate }}</td>
                                                        <td class="tth">{{ ts('CUSTOMERNAME') }}</td>
                                                        <td class="ttd">{{ @$v->first_name }}</td>
                                                    </tr>
                                                    <tr>
                                                        <td class="tth">{{ ts('YEAR') }}</td>
                                                        <td class="ttd">{{ @$v->year_id }}</td>
                                                        <td class="tth">{{ ts('MAKE') }}</td>
                                                        <td class="ttd">{{ ts('make_master.'.@$v->make_id) }}</td>
                                                        <td class="tth">{{ ts('MODEL') }}</td>
                                                        <td class="ttd">
                                                            {{ ts('model_master.'.@$v->model_id) ?: $v->model_id }}
                                                        </td>
                                                    </tr>
                                                    @if(@$rollnumber)
                                                        <tr>
                                                            <td class="tth">{{ ts('rollnumber') }}</td>
                                                            <td class="ttd" colspan="5">{{ $v->roll_number ?? $rollnumber }}</td>
                                                        </tr>
                                                    @endif
                                                    @empty($coverages[@$v->id])
                                                    @else
                                                        <tr>
                                                            <td class="tth">{{ ts('azbw') }}</td>
                                                            <td colspan="5" class="ttd ttt">
                                                                <table class="table table-bordered text-center">
                                                                    <tbody>
                                                                    <tr>
                                                                        <td class="tth">
                                                                            {{ ts('ZTBW') }}
                                                                        </td>
                                                                        <th class="tth">
                                                                            {{ ts('filmtype') }}
                                                                        </th>
                                                                        <th class="tth">质保时间</th>
                                                                    </tr>
                                                                    @foreach($coverages[@$v->id] as $c)
                                                                        @if(ts('part_master.'.@$c->part_id) && ts('film_type_master.'.@$c->film_type_id))
                                                                            <tr>
                                                                                <td>{{ ts('part_master.'.@$c->part_id) }}</td>
                                                                                <td>{{ ts('film_type_master.'.@$c->film_type_id) }}</td>
                                                                                @if(empty($c->start_time))
                                                                                    <td></td>
                                                                                @elseif (($c->end_time - $c->start_time) >= 20* 365 * 24 * 60 * 60)
                                                                                    <td>终身质保</td>
                                                                                @else
                                                                                    <td>{{date("Y-m-d H:i:s",$c->start_time)}} - {{date("Y-m-d H:i:s",$c->end_time)}}</td>
                                                                                @endif
                                                                            </tr>
                                                                        @endif
                                                                    @endforeach
                                                                    </tbody>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                    @endif
                                                    <tr>
                                                        <td class="tth">{{ ts('INSTALLATIONDATE') }}</td>
                                                        <td class="ttd">{{ fdate(@$v->installation_date) }}</td>
                                                        <td class="tth">{{ ts('DMMC') }}</td>
                                                        <td class="ttd">{{ getWDName($v) }}</td>
                                                        <td class="tth">{{ ts('CITY') }}</td>
                                                        <td class="ttd">{{ ts('cities.'.@$v->city) }}</td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="6">
                                                            <button class="btn btn-primary" onclick="getDetails('{{ @$v->warranty_id }}', '{{ substr(@$v->phone_number, -4) }}')">查看详情</button>
                                                        </td>
                                                    </tr>
                                                    </tbody>
                                                </table>
                                            @endforeach
                                        </div>
                                        <div class="d-block d-md-none">
                                            @foreach($datas as $k => $v)
                                                <table class="table table-bordered table-striped my-3">
                                                    <tbody>
                                                    <tr>
                                                        <th colspan="2" style="color: #007bff;">{{ ts('VALIDWARRANTYID') }}</th>
                                                    </tr>
                                                    <tr>
                                                        <td class="tth">{{ ts('WARRANTYID') }}</td>
                                                        <td>{{ @$v->warranty_id }}</td>
                                                    </tr>
                                                    @if(@$v->license_plate)
                                                        <tr>
                                                            <td>{{ ts('LICENSEPLATE') }}</td>
                                                            <td>{{ @$v->license_plate }}</td>
                                                        </tr>
                                                    @endif
                                                    <tr>
                                                        <td>{{ ts('CUSTOMERNAME') }}</td>
                                                        <td>{{ @$v->first_name }}</td>
                                                    </tr>
                                                    <tr>
                                                        <td>{{ ts('MAKE') }}</td>
                                                        <td>{{ ts('make_master.'.@$v->make_id) }}</td>
                                                    </tr>
                                                    <tr>
                                                        <td>{{ ts('MODEL') }}</td>
                                                        <td>
                                                            {{ ts('model_master.'.@$v->model_id) ?: @$v->model_id }}
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>{{ ts('YEAR') }}</td>
                                                        <td>{{ @$v->year_id }}</td>
                                                    </tr>
                                                    @if(@$rollnumber)
                                                        <tr>
                                                            <td>{{ ts('rollnumber') }}</td>
                                                            <td class="ttd">{{ @$rollnumber }}</td>
                                                        </tr>
                                                    @endif
                                                    @empty($coverages[@$v->id])
                                                    @else
                                                        @foreach($coverages[@$v->id] as $c)
                                                            @if(ts('part_master.'.@$c->part_id) && ts('film_type_master.'.@$c->film_type_id))
                                                                <tr>
                                                                    <td>{{ ts('filmtype') }}11</td>
                                                                    <td>{{ ts('film_type_master.'.@$c->film_type_id) }}</td>
                                                                </tr>
                                                                <tr>
                                                                    <td>{{ ts('azbw') }}</td>
                                                                    <td>{{ ts('part_master.'.@$c->part_id) }}</td>
                                                                </tr>
                                                                <tr>
                                                                    <td>质保时间</td>
                                                                    @if(empty($c->start_time))
                                                                        <td></td>
                                                                    @elseif (($c->end_time - $c->start_time) >= 20* 365 * 24 * 60 * 60)
                                                                        <td>终身质保</td>
                                                                    @else
                                                                        <td>{{date("Y-m-d H:i:s",$c->start_time)}} - {{date("Y-m-d H:i:s",$c->end_time)}}</td>
                                                                    @endif
                                                                </tr>
                                                            @endif
                                                        @endforeach
                                                    @endif
                                                    <tr>
                                                        <td>{{ ts('INSTALLATIONDATE') }}</td>
                                                        <td>{{ fdate(@$v->installation_date) }}</td>
                                                    </tr>
                                                    <tr>
                                                        <td>{{ ts('DMMC') }}</td>
                                                        <td>{{ getWDName($v) }}</td>
                                                    </tr>
                                                    <tr>
                                                        <td>{{ ts('CITY') }}</td>
                                                        <td>{{ ts('cities.'.@$v->city) }}</td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2">
                                                            <button class="btn btn-primary" onclick="getDetails('{{ @$v->warranty_id }}', '{{ substr(@$v->phone_number, -4) }}')">查看详情</button>
                                                        </td>
                                                    </tr>
                                                    </tbody>
                                                </table>
                                            @endforeach
                                        </div>
                                    </div>
                                @endif
                            @endif
                        </div>
                    </div>
                @endif
            </div>
        </div>
    </div>


    <div class="modal fade" id="smsCheck">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <h4 class="modal-title">手机号码验证</h4>
                </div>

                <div class="modal-body">
                    <div class="form">
                        <input type="text" name="warranty_id" value="" class="form-control" placeholder="质保ID" hidden>
                        <div class="form-item form-s1">
                            <div class="form-label" required="">手机号</div>
                            <div class="form-input">
                                <div class=" input-group custom-control-inline">
                                    <div class="input-group-prepend">
                                        <select name="extension" class="form-control">
                                            @foreach(\App\Models\PhoneExtension::get(['id', 'phone_ext']) as $v)
                                                <option value="{{ $v->phone_ext }}">{{ $v->phone_ext }}</option>
                                            @endforeach
                                        </select>
                                    </div>
                                    <input type="text" name="phone_number" value="" class="form-control" placeholder="请输入手机号">
                                </div>
                            </div>
                        </div>
                        <div class="error_info" id="did1">手机号码不能为空！</div>
                        <div class="form-item form-s1">
                            <div class="form-label" required="">验证码</div>
                            <div class="form-input">
                                <div class=" input-group custom-control-inline">
                                    <input type="text" name="sms_code" value="" class="form-control" placeholder="请输入验证码">
                                    <div class="input-group-prepend">
                                        <button class="btn btn-primary sms-btn" onclick="getSmsCode()">获取验证码</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="error_info" id="did2">验证码不正确！</div>
                    </div>
                    <div class="text-center mt-5">
                        <button class="btn btn-primary" onclick="checkSmsCode()">获取</button>
                        <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
                    </div>
                </div>

            </div>
        </div>
    </div>

</div>
<script src="/dist/layui/layui.all.js"></script>
<script src="/dist/jquery.js"></script>
<script src="/dist/bootstrap.bundle.js"></script>
<script src="/dist/axios.js"></script>
<script src="/dist/front/app.js"></script>
<script src="/dist/toastr.min.js"></script>
<script>
    function showErrorInfo(id, msg) {
        id = String(id).trim();
        if (!id) {
            return false;
        }
        if (id.indexOf('#') !== 0) {
            id = '#' + id;
        }
        $(id).text(msg).addClass('active');
    }
    function hideErrorInfo(id) {
        id = String(id).trim();
        if (!id) {
            return false;
        }
        if (id.indexOf('#') !== 0) {
            id = '#' + id;
        }
        $(id).removeClass('active');
    }
    var tslang = {
        sname: '请选择',
        svalue: '请输入',
    };
    function getDetails( warranty_id, phone = '') {
        var form = {
            warranty_id: warranty_id,
            a: 'getWarrantyDetails',
        };
        axios.post('/ajax/warranty', form)
            .then(function (d) {
                var url = '/asp-warranty/?warranty_id=' + warranty_id;
                window.location.assign(url);
            })
            .catch(function (error) {
                toastr.error(error.msg);
            })

    }


    function checkSmsCode() {
        var extension = $('#smsCheck [name="extension"]').val();
        var phone_number = $('#smsCheck [name="phone_number"]').val();
        var sms_code = $('#smsCheck [name="sms_code"]').val();
        var warranty_id = $('#smsCheck [name="warranty_id"]').val();
        if (!phone_number) {
            showErrorInfo('did1', '手机号码不能为空！');
            // toastr.error('手机号码不能为空！');
            $('#smsCheck [name="phone_number"]').focus();
            return false;
        }
        if (!sms_code) {
            showErrorInfo('did2', '验证码不能为空！');
            $('#smsCheck [name="sms_code"]').focus();
            return false;
        }
        var form = {
            extension: extension,
            phone_number: phone_number,
            sms_code: sms_code,
            warranty_id: warranty_id,
            a: 'checkSmsCode',
        };
        axios.post('/ajax/warranty', form)
            .then(function (d) {
                toastr.success('获取成功！');
                let url = '/asp-warranty/?svalue=' + phone_number + '&t=warranty';
                window.location.assign(url);
            })
            .catch(function (error) {
                var msg = error.response.data.msg || '验证码错误';
                showErrorInfo('did2', msg);
            })
    }

    function chageSmsBtnText(second) {
        if (second > 0) {
            second = second -1;
            setTimeout(function () {
                $('.sms-btn').text(second);
                chageSmsBtnText(second)
            }, 1000);
        } else {
            $('.sms-btn').text('获取验证码');
            $('.sms-btn').attr('disabled', false);
        }
    }

    function getSmsCode() {
        var extension = $('#smsCheck [name="extension"]').val();
        var phone_number = $('#smsCheck [name="phone_number"]').val();
        var warranty_id = $('#smsCheck [name="warranty_id"]').val();
        $('.sms-btn').attr('disabled', true);
        if (!phone_number) {
            showErrorInfo('did1', '手机号码不能为空！');
            $('#smsCheck [name="phone_number"]').focus();
            setTimeout(function () {
                $('.sms-btn').attr('disabled', false);
            }, 300);
            return false;
        }
        var form = {
            warranty_id: warranty_id,
            extension: extension,
            phone_number: phone_number,
            t: 'ajax',
            a: 'getSmsCode',
        };
        axios.post('/ajax/warranty', form)
            .then(function (d) {
                toastr.success('发送成功，请注意查收！')
                chageSmsBtnText(60)
            })
            .catch(function (error) {
                var msg = error.response.data.msg || '手机号码不正确';
                showErrorInfo('did1', msg);
                setTimeout(function () {
                    $('.sms-btn').attr('disabled', false);
                }, 300);
            })
    }
    $(document).ready(function () {
        $('#smsCheck [name="phone_number"]').on('change', function () {
            hideErrorInfo('did1', '手机号码不能为空！');
        })
        $('#smsCheck [name="sms_code"]').on('change', function () {
            hideErrorInfo('did2', '');
        })
    })

    function searchWarrenty() {
        let searchValue = $("input[name='svalue']").val();
        if (searchValue == '') {
            toastr.error('{{ ts('WST1') }}');
            return false;
        }
        location.href = '/asp-warranty/?t=warranty&svalue=' + searchValue;
        return true;

        let phone = '';

        axios.post('/getPhone', {'search_value' : searchValue})
            .then(function (data) {
                if (data && data.data && data.data.phone_number) {
                    phone = data.data.phone_number;
                }
                if(/^1[3456789]\d{9}$/.test(searchValue)) {
                    showSendSms(searchValue);
                    return true;
                } else if (phone != '' && typeof phone != 'undefined') {
                    showSendSms(phone);
                    return true;
                }
                location.href = '/asp-warranty/?t=warranty&svalue=' + searchValue;
            })
            .catch(function (error) {
                location.href = '/asp-warranty/?t=warranty&svalue=' + searchValue;
            });

        return true;

        /*var arr = $('.warranty-form').serializeArray()
        if (!arr[0].value) {
            toastr.error(tslang[arr[0].name]);
            return false;
        }
        /!*if (!arr[1].value) {
            toastr.error(tslang[arr[1].name]);
            return false;
        }*!/
        var form = {}
        $.each(arr, function(a, b) {
            form[b['name']] = b['value']
        })
        request.post('/ajax?t=warranty', form)*/
    }

    function showSendSms(phone, warranty_id = 0) {
        $('#smsCheck [name="warranty_id"]').val(warranty_id);
        var msg = '请输入手机尾号为【'+phone+'】的手机号码';
        // .attr('placeholder', msg)
        if(/^1[3456789]\d{9}$/.test(phone)) {
            let phone_number = $('#smsCheck [name="phone_number"]').val(phone);
            let sms_code = $('#smsCheck [name="sms_code"]').val('');
            $('#smsCheck').modal({backdrop: 'static', keyboard: false});
            return true;
        }
        let phone_number = $('#smsCheck [name="phone_number"]').val('').attr('placeholder', msg);
        let sms_code = $('#smsCheck [name="sms_code"]').val('');
        showErrorInfo('did1', msg);
        $('#smsCheck').modal({backdrop: 'static', keyboard: false});
    }
</script>
</body>
</html>
